﻿
namespace AudioBook.AudioManagement
{
    public class GUIConstants
    {
        public class Common
        {
            public const string ID_QUERY = "id";

            public const string LOGIN_SESSION = "LOGIN_SESSION";

            public const string SELECT_CHECKBOX_NAME = "SELECTED";

            public const string DATE_FORMAT = "yyyy-MM-dd";

            public const string DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm";

        }

        public class WebPage
        {
            public class CommonPage
            {
                public const string LoginPage = "~/LoginPage.aspx";

                public const string HomePage = "~/Home.aspx";

                /// <summary>
                /// Request three param. y = (0), id = (1), s=(2), m = (3)
                /// </summary>
                public const string LoadImage = "http://localhost:54871/LoadImage.aspx?y={0}&id={1}&s={2}&m={3}";
            }

            public class CategoryPage
            {
                public const string DefaultCategory = "~/CategoryManage/Default.aspx";

                public const string AddCategoryPage = "~/CategoryManage/AddCategory.aspx";

                public const string EditCategory = "~/CategoryManage/EditCategory.aspx?id={0}";
            }

            public class FilePage
            {
                public const string DefaultFile = "~/FileManage/Default.aspx";

                public const string AddFile = "~/FileManage/AddFile.aspx?id={0}";

                public const string EditFile = "~/FileManage/EditFile.aspx?id={0}";

                public const string EditFolder = "~/FileManage/EditFolder.aspx?id={0}";
            }

            public class AudioPage
            {
                public const string DefaultAudio = "~/AudioManage/Default.aspx";

                public const string AddArticle = "~/AudioManage/AddArticle.aspx";

                public const string EditArticle = "~/AudioManage/EditArticle.aspx?id={0}";

                public const string ArticleDetail = "~/AudioManage/ArticleDetail.aspx?id={0}";

                public const string AudioFile = "AudioFile.aspx?id={0}";

                public const string PlayAudio = "PlayAudio.aspx?id={0}";
            }
        }

        public class EventCommand
        {
            public const string smx_LoadData = "LOADDATA";

            public const string smx_LoadData_ShowPopup = "LOADDATA_SHOWPOPUP";

            public const string smx_ClosePopup = "CLOSEPOPUP";

            public const string smx_ShowPopup = "SHOWPOPUP";

            public const string smx_ChangeActive = "CHANGEACTIVE";

            public const string smx_SaveOrder = "SAVEORDER";

            public const string smx_UpOrder = "UPORDER";

            public const string smx_DownOrder = "DOWNORDER";

            public const string smx_AddNew = "ADDNEW";

            public const string smx_Delete = "DELETE";

            public const string MoveArticlePart = "MOVE_ARTICLE_PART";
        }

        public class ConfigKey
        {
            public const string ROOT_FILE_FOLDER = "ROOT_FILE_FOLDER";

            public const string DATA_FOLDER = "DATA_FOLDER";
        }

        public class ErrorMessage
        {
            public const string TransactionError = "Transaction error, try again later.";
        }

        public class Icon
        {
            public const string TrueIcon = "~/images/grid/true.png";

            public const string FalseIcon = "~/images/grid/false.png";

            public const string DeleteIcon = "~/images/grid/delete.png";

            public const string DeleteDisableIcon = "~/images/grid/delete_disable.png";
        }
    }
}